/* 美化banner-container */
.layui-carousel {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 500px !important;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 美化banner-slide */
.layui-carousel-item div {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}

.layui-carousel-ind li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    margin: 0 5px;
    transition: background-color 0.5s, transform 0.5s;
}

.layui-carousel-ind .layui-this {
    background-color: black;
    transform: scale(1.2);
}

/* 美化箭头按钮 */
.layui-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.layui-carousel-arrow.layui-icon-left {
    left: 10px;
}

.layui-carousel-arrow.layui-icon-right {
    right: 10px;
}

main {
    width: 100%;
    display: flex;
}

#banner {
    width: 100%;
}

.banner-img img {
    width: 100%;
    height: 100%;
}

.banner-img h1 {
    position: absolute;
    top: 20%;
    left: 50%;
    color: white;
    font-weight: bold;
    font-size: 2.5em;
    width: 90%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.banner-img h2 {
    position: absolute;
    top: 20%;
    left: 50%;
    color: white;
    font-weight: bold;
    font-size: 2.5em;
    width: 90%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.banner-img p {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 90%;
    text-align: center;
    transform: translate(-50%, -50%);
    font-size: 1.4em;
    color: white;
}

.banner-button {
    position: absolute;
    text-align: center;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-body {
    padding: 50px 0 50px 0;
}

.layui-container {
    width: 90%;
}

.c2 {
    margin-top: 50px;
}

.main-body-right {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.main-body-right img {
    height: 60px
}

.main-body-right span {
    padding: 10px;
    color: #666;
    font-size: 0.9em;
}

.photo-list img {
    width: 520px;
    height: 355px;
    max-width: 100%;
}

.grid-demo h2 {
    font-size: 2.125em;
    color: #000;
    margin-bottom: 34px;
    font-weight: 600;
}

.layui-row {
    padding-top: 20px;
}

h3 {
    font-size: 1.1em;
    color: #1e1e1e;
    line-height: 2;
    /*padding-bottom: 12px;*/
}

.wenzi {
    display: block;
    font-size: 0.9em;
    color: #666;
    line-height: 3;
    /*padding-bottom: 30px;*/
}

.main-doc ul {
    padding: 0 10px;
}


.sty {
    width: 90%;
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    padding: 10px;
    /*margin-left: 110px;*/
    transition: all 0.5s ease;
    border-radius: 10px;
    margin: auto;
    height: 120px;
    margin-top: 10px;
}


.sty:hover {
    background-color: #e2e2e2;
    box-shadow: 2px 2px 10px #ccc;
}

.content-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.img-left {
    width: 50px;
    box-shadow: 0px 0px 10px #ccc;
}

.right-content {
    width: 100%;
    overflow: hidden;
    height: 105px;
    padding-left: 15px;
}

.right-content h3, .right-content p {
    /*text-shadow: 2px 2px #ccc;*/
    width: 90%;
}

.right-content h3 {
    /*font-size: 16px;*/
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-content p {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

}

.img-left {
    border-radius: 50%;
}

.wz {
    width: 100%;
    background-color: #f8f8fb;
    padding-bottom: 50px;
}

.wztj {
    height: 100px;
    /*margin-top: 50px;*/
    text-align: center;
    font-size: 2.125em;
}

.wztj div {
    padding-top: 50px;
}

.youlian {
    text-align: center;
}

.yl-link {
    margin-top: 30px;
}

.yl-link a {
    margin: 0 20px;
}


.number b {
    font-size: 48px;
    font-weight: bold;
    animation: countUp 1s linear;
}

@keyframes countUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.number_div {
    text-align: center;
    /*display: flex;*/
    background: #f8f8fb;
    /*height: 140px;*/
    margin-top: 25px;
    position: relative;
    padding: 20px 0;
}

.text-center span {
    color: #666;
}

.number_width {
    width: 100%;
    margin-top: 60px;
    border-bottom: 1px solid #ddd;
}


.text-center {
    text-align: center;
}

.number {
    font-size: 36px;
    font-weight: bold;
    margin-top: 10px;
}

i {
    font-size: 18px;
}

.jianjie {
    text-align: center;
}

.jianjie h3 {
    font-size: 30px;
    font-weight: bold;
}

.jianjie p {
    color: #666;
}

@media screen and (max-width: 600px) {
    .number {
        margin-top: 0;
    }

    .number b {
        font-size: 28px;
    }
}

.contact-us-container {
  position: fixed;
  bottom: 130px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-us,
.follow-us {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  background-color: rgba(128, 128, 128, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-us:hover,
.follow-us:hover {
  background-color: #ffffff;
}

.qr-code {
  position: absolute;
  top: -80px; /* 调整二维码相对于图标的位置 */
  right: 60px; /* 将二维码移到左侧 */
  display: none;
  width: 200px;
  height: 200px;
  background-color: #ffffff;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.arrow {
  position: absolute;
  right: -8px; /* 将箭头移到二维码的左侧 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgb(255, 255, 255);
}

.qr-code img {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
    .layui-col-sm-offset3 {
        margin-left: 0;
    }
}

@media only screen and (max-width: 768px) {
    .layui-carousel {
        height: 20rem !important;
    }

    .banner-button {
        display: flex;
    }

    .banner-img h2 {
        font-size: 1.5em!important;
    }

    .banner-img p {
        top: 45%;
        font-size: 1.1em;
    }



    .layui-container {
        width: 100%;
    }

    .main-body-right img {
        height: 2.5rem;
    }

    .main-body-right span {
        margin-left: 0.5rem;
    }

    .main-body {
        padding: 1rem 0;
    }

    .contact-us-container {
        right: 0.5rem;
        bottom: 5rem;
    }

    .photo-list img {
        width: 100%;
        height: auto;
    }

    .layui-col-xs12 {
        padding: 1rem 0;
    }

    .layui-row {
        padding: 0;
    }


    /* The Modal (background) */
    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1000; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0, 0, 0); /* Fallback color */
        background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    }

    /* Modal Content */
    .modal-content {
        background-color: #fefefe;
        margin: 50% auto; /* 15% from the top and centered */
        padding: 0.5rem;
        border: 1px solid #888;
    }

    /* The Close Button */
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    /* Modal Image */
    .modal-image {
        max-width: 100%;
        height: auto;
    }

    .c2 {
        border-top: 2px solid #00000012;
    }

    .layui-col-right {
        position: relative;
        width: 210%;
        left: -115%;
    }

    .layui-col-left {
        position: relative;
        width: 210%;
    }

    .layui-row-body {
        display: flex; /* 使用Flexbox布局 */
    }

    .layui-col-xs12.layui-col-sm6.layui-col-md6 {
        display: flex; /* 在列内部也使用Flexbox布局 */
        flex-direction: column; /* 默认列布局，图片和文字垂直排列 */
    }

    .photo-list.grid-demo.layui-col-sm-offset3 {
        order: 2; /* 将图片部分放在文字后面 */
    }

    .grid-demo.grid-demo-bg1.layui-col-sm-offset2 {
        order: 1; /* 将文字部分放在图片前面 */
    }

    /* 为了美观，你可以添加一些边距和样式调整 */
    .grid-demo {
        margin: 15px;
    }

    .other {
        max-width: 100%; /* 确保图片不会超出其容器 */
    }

    .youlian {
        padding: 1rem 0 0;
    }

    .yl-link {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 0.5rem;
        margin-top: 0;
    }

    .yl-link a {
        text-decoration: none;
        color: #333;
        font-size: 14px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin: 5px 0;
        text-align: center;
    }
}

.image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.transition-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image2 {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s linear; /* 5秒完成过渡，线性速度 */
}

.description {
    color: #666;
    text-align: center;
    font-size: 16px;
}

.new-tu{
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .image-container {
        height: 80px;
    }

    .new-tu{
        text-align: left!important;
    }
}